
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Square)
{
	TEST(should be able to calculate area: 3.1*3.1=9.61)
	{
		Square square(3.1);
		ASSERT_EQ(9.61, square.getArea());
	}
	TEST(should be able to calculate perimeter: 4*3.1=12.4)
	{
		Square square(3.1);
		ASSERT_EQ(12.4, square.getPerimeter());
	}
	TEST(should be able to set side: 75)
	{
		Square square(24);
		ASSERT_TRUE(square.setSide(75));
	}
};
